package model;

/**
 * 
 * @author Wim The FreeStudent class extends the Student and is a model class
 *         that stores information about a FreeStudent like studentNumber, name,
 *         course history, registrations and nationality.
 * 
 */
public class FreeStudent extends Student {

	private String nationality;

	public FreeStudent(){
		super(null,null);
	}
	
	/**
	 * Constructor to instantiate a FreeStudent with a studentNumber, name and
	 * nationality.
	 * 
	 * @param studentNumber
	 *            The Student number.
	 * @param name
	 *            The student name.
	 * @param nationality
	 *            The students nationality.
	 */
	
	
	public FreeStudent(String studentNumber, String name, String nationality) {
		super(studentNumber, name);
		this.nationality = nationality;
		
	}

	/**
	 * 
	 * @return A String value indicating the students nationality.
	 */
	public String getNationality() {
		return nationality;
	}

	/**
	 * Sets the nationality of the FreeStudent.
	 * 
	 * @param nationality
	 *            A String value indicating the nationality of the FreeStudent
	 */
	public void setNationality(String nationality) {
		this.nationality = nationality;
	}
	
	
	/** Returns a string representation of the object */
	/*@Override
	public String toString() {
		return String.format("%s (%s)", this.getName(), this.nationality);
	}*/
}
